package com.ruifu.pls.entity;

public class DocOrderPackingSummaryId implements java.io.Serializable {

    // Fields

    private String traceid;
    private String orderno;

    // Constructors

    /** default constructor */
    public DocOrderPackingSummaryId() {
    }

    /** full constructor */
    public DocOrderPackingSummaryId(String traceid, String orderno) {
        this.traceid = traceid;
        this.orderno = orderno;
    }

    // Property accessors

    //@Column(name = "TRACEID", nullable = false, length = 30)
    public String getTraceid() {
        return this.traceid;
    }

    public void setTraceid(String traceid) {
        this.traceid = traceid;
    }

   // @Column(name = "ORDERNO", nullable = false, length = 20)
    public String getOrderno() {
        return this.orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof DocOrderPackingSummaryId))
            return false;
        DocOrderPackingSummaryId castOther = (DocOrderPackingSummaryId) other;

        return ((this.getTraceid() == castOther.getTraceid()) || (this
                .getTraceid() != null && castOther.getTraceid() != null && this
                .getTraceid().equals(castOther.getTraceid())))
                && ((this.getOrderno() == castOther.getOrderno()) || (this
                .getOrderno() != null && castOther.getOrderno() != null && this
                .getOrderno().equals(castOther.getOrderno())));
    }

    public int hashCode() {
        int result = 17;

        result = 37 * result
                + (getTraceid() == null ? 0 : this.getTraceid().hashCode());
        result = 37 * result
                + (getOrderno() == null ? 0 : this.getOrderno().hashCode());
        return result;
    }

}
